package com.msb.serviceDriverUser.controller;

import com.msb.internalcommon.dto.ResponseResult;
import com.msb.serviceDriverUser.service.CityDriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.ws.rs.POST;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/24 - 07 - 24 - 13:15
 * @Description: com.msb.serviceDriverUser.controller
 * @version: 1.0
 */
@RestController
@RequestMapping("/city-driver")
public class CityDriverController {

    @Autowired
    CityDriverUserService cityDriverUserService ;

    @PostMapping("/id-available-driver")
    public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode) {
        return cityDriverUserService.isAvailableDriver(cityCode);
    }

}
